import { Base } from '../../utils/base.js';
class Model extends Base {
  constructor() {
    super();
  }

  // 获取列表
  getList(data,callback){
    this.request({
      url: '/album',
      data,
      success: function (res) {
        callback && callback(res)
      },
      fail: function (res) {
        callback && callback(res)
      }
    })
  }

  // 获取详细
  getInfo(id,callback){
    this.request({
      url: '/album/'+id,
      success: function (res) {
        callback && callback(res)
      },
      fail: function (res) {
        callback && callback(res)
      }
    })
  }
}

const albumModel=new Model();
export { albumModel }  